Jonas Ådahl [Thu, 13 Oct 2016 05:56:00 +0000 (13:56 +0800)]
wayland/xdg-shell: Scale positioner coordinates
When the monitor is scaled (i.e. HiDPI scaling) the placement coordinates
ere still in unscaled xdg_surface window geometry coordinate space when
used to place the window. Fix this by scaling the coordinates by the
monitor scale of the parent toplevel window before using them.
https://bugzilla.gnome.org/show_bug.cgi?id=771841
Gbp-Pq: Name wayland-xdg-shell-Scale-positioner-coordinates.patch
wayland/xdg-shell: update popup window monitor early
As meta_window_place_with_placement_rule will trigger a configure event
being sent ensure that the popup is placed on the correct monitor first
to ensure the right scale factor is applied.
Jonas Ådahl [Fri, 23 Sep 2016 09:15:56 +0000 (17:15 +0800)]
wayland/xdg-popup: Always use monitor of toplevel
Always use the monitor of the toplevel surface's window, so that the
popup menu and the parent will always have the same scale. This fixes
the dimensions sent in the xdg_popup configure event.
https://bugzilla.gnome.org/show_bug.cgi?id=771841
Gbp-Pq: Name wayland-xdg-popup-Always-use-monitor-of-toplevel.patch